-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New resource: aws_autoscaling_instance_refresh #14442
New resource: aws_autoscaling_instance_refresh #14442
Conversation
Hi, would be great to have this merge , since I don't see anything blocking it technically speaking , maybe I'm missing something . thanks for the work on this @roberth-k |
Notification of Recent and Upcoming Changes to ContributionsThank you for this contribution! There have been a few recent development changes that affect this pull request. We apologize for the inconvenience, especially if there have been long review delays up until now. Please note that this is automated message from an unmonitored account. See the FAQ for additional information on the maintainer team and review prioritization. If you are unable to complete these updates, please leave a comment for the community and maintainers so someone can potentially continue the work. The maintainers will encourage other contributors to use the existing contribution as the base for additional changes as appropriate. Otherwise, contributions that do not receive updated code or comments from the original contributor may be closed in the future so the maintainers can focus on active items. For the most up to date information about Terraform AWS Provider development, see the Contributing Guide. Additional technical debt changes can be tracked with the As part of updating a pull request with these changes, the most current unit testing and linting will run. These may report issues that were not previously reported. Terraform 0.12 SyntaxReference: #8950 Version 3 and later of the Terraform AWS Provider, which all existing contributions would potentially be added, only supports Terraform 0.12 and later. Certain syntax elements of Terraform 0.11 and earlier show deprecation warnings during runs with Terraform 0.12. Documentation and test configurations, such as those including deprecated string interpolations ( Action Required: Terraform Plugin SDK Version 2Reference: #14551 The Terraform AWS Provider has been upgraded to the latest version of the Terraform Plugin SDK. Generally, most changes to contributions should only involve updating Go import paths in source code files. Please see the referenced issue for additional information. Action Required: Removal of website/aws.erb FileReference: #14712 Any changes to the Upcoming Change of Git Branch NamingReference: #14292 Development environments will need their upstream Git branch updated from Upcoming Change of GitHub OrganizationReference: #14715 This repository will be migrating from https://github.com/terraform-providers/terraform-provider-aws to https://github.com/hashicorp/terraform-provider-aws. No practitioner or developer action is anticipated and most GitHub functionality will automatically redirect to the new location. Go import paths including |
9fcb0c2
to
ba8135e
Compare
ba8135e
to
5004831
Compare
Hello, and thank you for your contribution! This project recently upgraded to V2 of the Terraform Plugin SDK This pull request appears to include at least one V1 import path of the SDK ( To resolve this situation without losing any existing work, you may be able to Git rebase your branch against the current master branch (example below); replacing any remaining old import paths with the newer ones. $ git fetch --all
$ git rebase origin/master Another option is to create a new branch from the current master with the same code changes (replacing the import paths), submit a new pull request, and close this existing pull request. We apologize for this inconvenience and appreciate your effort. Thank you for contributing and helping make the Terraform AWS Provider better for everyone. |
5004831
to
4e09c3f
Compare
Would this one ever get merged!? 😨 |
Does someone know when this will be merged ? |
4e09c3f
to
fe0f39b
Compare
fe0f39b
to
6e1894c
Compare
Hi @roberth-k, thanks for the two PRs for this feature. We've been putting a lot of thought into the best way to address instance refresh. I'll follow up with you later this week |
I feel like a lot of folks out there (including myself) are waiting on this pull request to land on a release for a while now. docker run --rm \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
-e AWS_REGION \
awscli:latest \
aws --region ${AWS_REGION} \
autoscaling start-instance-refresh \
--auto-scaling-group-name "my-${bg_active_stack}" \
--preferences '{"InstanceWarmup": 600, "MinHealthyPercentage": 90}' Hope it helps. |
@gdavison Did that follow-up happen? Currently we're using CloudFormation (through Terraform) to handle ASGs specifically for these kinds of rolling updates |
@gdavison any update on the matter ? |
…Error: Invalid expression: trigger = %[2]q
…stAccAvailableAZsNoOptInDefaultExcludeConfig()
aws_autoscaling_instance_refresh - fix fmt/validate checks
Tested this (compiled and tested locally), works OK for me. It would be good to get this merged |
any progress here? is it going to be merged anytime soon? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #13785
Supersedes #13791. Representing Instance Refresh as a separate resource enables
consistent failure behaviour when waiting for refresh completion.
The
aws_autoscaling_instance_refresh
block includes atriggers
block, whichallows additional flexibility. The default recommendation is to use the new
instance_refresh_token
token attribute of the auto-scaling group, which changesevery time the ASG is modified in a way that would warrant a refresh (e.g. new
launch template or VPC configuration).
Example:
Release note for CHANGELOG:
Output from acceptance testing: